package cn.gs.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class ConsumerListener {

    @RabbitListener(queues = "MyQueue001")
    public void getPublisherQueue(String msg){
        System.out.println("获取到的消息为:"+ msg);
    }
}
